package models

type Role struct {
	ID
	Name string `json:"name" gorm:"size:30;not null;comment:用户名称"`
	Timestamps
}

type RoleList struct {
	ID         int    `json:"id" `
	Role_name  string `json:"role_name" `
	User_names string `json:"user_names" `
}

// 角色内所有用户
type RoleUsers struct {
	ID        int    `json:"user_id" `
	User_name string `json:"username" `
	Mobile    string `json:"mobile" `
	Real_name string `json:"realname" `
}
